<h1><%= @test_type.name %></h1>

<table>
  <tr>
    <th>Name</th>
    <td><%= @test_type.name %></td>
  </tr>
  <tr>
    <th>Build</th>
    <td><%= @build_type.title %></td>
  </tr>
  <tr>
    <th>Timeout</th>
    <td><%= @test_type.timeout %> seconds</td>
  </tr>
  <tr>
    <th>Virtual Machine</th>
    <td><%= @test_type.virtual_machine %></td>
  </tr>
  <tr>
    <th>Serial device 1 (out)</th>
    <td><%= @test_type.serial_dev1 %></td>
  </tr>
  <tr>
    <th>Serial device 2 (out2)</th>
    <td><% if @test_type.serial_dev2.nil? or
              @test_type.serial_dev2.length == 0 then %>
          <i>&lt; undefined &gt;</i>
        <% else %>
          <%= @test_type.serial_dev2 %>
        <% end %>
  </tr>
  <tr>
    <th>Description</th>
    <td><%= @test_type.description %></td>
  </tr>
</table>

<div style="float:right;">
  <a href="#input">Input</a> | 
  <a href="#output">Output</a> | 
  <a href="#output2">Output2</a> | 
  <a href="#error">Error</a> | 
  <b><%= link_to 'Edit', :action => 'edit', :id => @test_type %></b> |
  <b><%= link_to 'Back', :action => 'list' %></b> | 
  <b><%= link_to 'Delete', :action => 'destroy' %></b>
</div>

<a name="input" />
<h3>Input</h3>
<div><pre class="test_input"><%= @test_input %></pre></div>

<a name="output" />
<h3>Output</h3>
<div><pre class="test_output"><%= @test_output %></pre>
</div>

<a name="output2" />
<h3>Output 2</h3>
<div>
  <pre class="test_output"><%= @test_output2 %></pre>
</div>

<a name="error" />
<h3>Error</h3>
<div>
  <pre class="test_error"><%= @test_error %></pre>
</div>
